package com.briup.entity;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @Classname Environment
 * @Description 环境数据  实体类型
 * @Date 2023/11/20 15:05
 * @Created by 崔宗祺
 * @Version v1.0.0
 */

public class Environment implements Serializable, Cloneable {
    static final long serialVersionUID = 42L;
    //环境数据种类 ： 温度 湿度 光照强度 二氧化碳
    //环境种类名称
    private String name;
    //发送端id
    private String srcId;
    //树莓派系统id
    private String desId;
    //实验箱区域模块id(1-8)
    private String devId;
    //传感器个数
    private int count;
    //发送指令标号 3表示接收数据 16表示发送命令
    private String cmd;
    //环境值
    private float data;
    //状态 默认1表示成功
    private int status;
    //采集时间
    private Timestamp gatherDate;

    @Override
    public String toString() {
        return "Environment{" +
                "name='" + name + '\'' +
                ", srcId='" + srcId + '\'' +
                ", desId='" + desId + '\'' +
                ", devId='" + devId + '\'' +
                ", count=" + count +
                ", cmd='" + cmd + '\'' +
                ", data=" + data +
                ", status=" + status +
                ", gatherDate=" + gatherDate +
                '}';
    }

    public Environment() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSrcId() {
        return srcId;
    }

    public void setSrcId(String srcId) {
        this.srcId = srcId;
    }

    public String getDesId() {
        return desId;
    }

    public void setDesId(String desId) {
        this.desId = desId;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public float getData() {
        return data;
    }

    public void setData(float data) {
        this.data = data;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Timestamp getGatherDate() {
        return gatherDate;
    }

    public void setGatherDate(Timestamp gatherDate) {
        this.gatherDate = gatherDate;
    }

    @Override
    public Environment clone() throws CloneNotSupportedException {
        return (Environment) super.clone();
    }
}
